<?php /* Smarty version Smarty-3.0.7, created on 2017-06-01 09:24:56
         compiled from "C:\wamp\www\gongzhonghao.yuanfenba.net/modules/admin/tpl/menu/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:24186592f6ce8388f80-99492690%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9f0ed64f0b5a497f2ae25e8eee4ba8c7c2c5f3da' => 
    array (
      0 => 'C:\\wamp\\www\\gongzhonghao.yuanfenba.net/modules/admin/tpl/menu/list.tpl',
      1 => 1496280090,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '24186592f6ce8388f80-99492690',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<style>
    .table th,.table td { text-align: center;vertical-align: middle !important; }
    .table th.left,.table td.left { text-align: left; }
    .table > thead > tr > th{ border-bottom-width: 1px;}
    .breadcrumb>li.active a{ color: #777;}
</style>
<form method="get" action="/admin/menu/list" class="form-inline">
    <input type="hidden" name="flag" value="<?php echo $_smarty_tpl->getVariable('flag')->value;?>
">
    <table>
        <tr>
            <td>
                <label for="form-w" class="control-label">名称：</label>
                <input class="form-control" id="name" name="name" value="<?php echo $_GET['name'];?>
" size="8"/>
            </td>
            <td>
                <label for="form-w" class="control-label">公司主体：</label>
                <input class="form-control" id="company" name="company" value="<?php echo $_GET['company'];?>
" size="8"/>
            </td>
            <td>
                <label for="form-w" class="control-label">运营者姓名：</label>
                <input class="form-control" id="operator" name="operator" value="<?php echo $_GET['operator'];?>
" size="8"/>
            </td>
            <td>
                <label for="form-w" class="control-label">认证状态：</label>
                <select name="status" class="form-control">
                    <option value="0">请选择认证状态</option>
                    <option value="1" <?php if ($_GET['status']==1){?>selected<?php }?>>已认证</option>
                    <option value="2" <?php if ($_GET['status']==2){?>selected<?php }?>>未认证</option>
                </select>
            </td>
            <td><button type="submit" class="btn btn-primary">查找</button></td>
        </tr>
    </table>
</form>
<form method="get" class=" form-inline" target="_blank">
    <table class="fTable table">
        <thead>
        <tr>
            <th width="10%">序号</th>
            <th width="10%">公众号名称</th>
            <th width="10%">公司主体</th>
            <th width="10%">运营者</th>
            <th width="10%">认证状态</th>
            <th width="30%" colspan="2">下属频道</th>
            <th width="10%">类型</th>
            <th width="10%">操作</th>
        </tr>
        </thead>
        <tbody>
        <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('dataList')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
            <tr>
                <td <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value['wid'];?>
</td>
                <td <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</td>
                <td <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value['company'];?>
</td>
                <td <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value['operator'];?>
</td>
                <td <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><?php if ($_smarty_tpl->tpl_vars['item']->value['status']==1){?>已认证<?php }else{ ?>未认证<?php }?></td>
                <?php if (!empty($_smarty_tpl->tpl_vars['item']->value['buttons'])){?>
                    <td colspan="3">下属频道<?php echo $_smarty_tpl->getVariable('key')->value+1;?>
</td>
                <?php }else{ ?>
                    <td colspan="3" <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><span style="color: red;">暂无频道</span></td>
                <?php }?>
                <td <?php if ($_smarty_tpl->tpl_vars['item']->value['rowspan']>0){?>rowspan="<?php echo $_smarty_tpl->tpl_vars['item']->value['rowspan'];?>
"<?php }?>><a href="/admin/menu/manager?wid=<?php echo $_smarty_tpl->tpl_vars['item']->value['wid'];?>
">管理</a></td>
            </tr>
            <?php if (!empty($_smarty_tpl->tpl_vars['item']->value['buttons'])){?>
                <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['item']->value['buttons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
                        <?php if ($_smarty_tpl->tpl_vars['key']->value){?><tr><td colspan="3">下属频道<?php echo $_smarty_tpl->tpl_vars['key']->value+1;?>
</td></tr><?php }?>
                        <?php if (!empty($_smarty_tpl->tpl_vars['value']->value['sub_button'])){?>
                            <tr>
                                <?php $_smarty_tpl->tpl_vars["rows"] = new Smarty_variable((count($_smarty_tpl->tpl_vars['value']->value['sub_button'])), null, null);?>
                                <td rowspan="<?php echo $_smarty_tpl->getVariable('rows')->value+1;?>
"><?php echo $_smarty_tpl->tpl_vars['value']->value['mname'];?>
</td>
                                <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['value']->value['sub_button']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
?>
                                    <tr>
                                        <td><?php echo $_smarty_tpl->tpl_vars['val']->value['mname'];?>
</td>
                                        <td><?php if ($_smarty_tpl->tpl_vars['val']->value['type']==1){?>外链<?php }elseif($_smarty_tpl->tpl_vars['val']->value['type']==2){?>图文<?php }elseif($_smarty_tpl->tpl_vars['val']->value['type']==3){?>文字<?php }?></td>
                                    </tr>
                                <?php }} ?>
                            </tr>
                        <?php }else{ ?>
                        <tr>
                            <td colspan="2"><?php echo $_smarty_tpl->tpl_vars['value']->value['mname'];?>
</td>
                            <td><?php if ($_smarty_tpl->tpl_vars['value']->value['type']==1){?>外链<?php }elseif($_smarty_tpl->tpl_vars['value']->value['type']==2){?>图文<?php }elseif($_smarty_tpl->tpl_vars['value']->value['type']==3){?>文字<?php }?></td>
                        </tr>
                        <?php }?>
                <?php }} ?>
            <?php }?>
        <?php }} ?>
        </tbody>
    </table>
</form>
<?php $_template = new Smarty_Internal_Template("pager.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("footer.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>